import 'package:getx_demo/pages/login/widgets/login_view.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'index.dart';

class LoginPage extends GetView<LoginController> {
  const LoginPage({Key? key}) : super(key: key);

  // 主视图
  Widget _buildView() {
    return const LoginView();
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<LoginController>(
      builder: (_) {
        return _buildView();
      },
    );
  }
}
